﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="write-review.aspx.cs" Inherits="write_review" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Namespace="ECommerce.Library.Web" TagPrefix="ucc" %>


<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <link href="thirdparty/rateit/rateit.css" rel="stylesheet" type="text/css" />
    <script src="<%= SiteGlobals.BaseUrl %>javascript/jquery.min.js" type="text/javascript"></script>
    <script src="<%= SiteGlobals.BaseUrl %>thirdparty/rateit/jquery.rateit.js" type="text/javascript"></script>
    <link href="App_Style/css/buttons.css" rel="stylesheet" type="text/css" />
<link href="App_Style/css/00.reset.css" rel="stylesheet" type="text/css" />
<link href="App_Style/css/02.text.css" rel="stylesheet" type="text/css" />
<link href="App_Style/css/forms.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
    
    function SetRateVal() {
        $('.my-rate').val($('#rateit_prod').rateit('value'));
    }
</script>   
</head>
<body>
    <form id="form1" runat="server">
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="valgrpReview" ShowSummary="false" ShowMessageBox="true" HeaderText="You have missed the followings:" DisplayMode="List" />
     <ucc:ResponseMessage ID="uccResponseMessage" runat="server"></ucc:ResponseMessage>
     <label>Rate</label>
  <input type="range" min="0" max="5" value="4" step="0.5" id="backing2">
<div class="rateit" data-rateit-backingfld="#backing2" data-rateit-resetable="false" id="rateit_prod"></div>
    <input id="hidRate" type="hidden" runat="server" class="my-rate" />
 <br class="clearfix" />
      <label>Name</label>
    <asp:TextBox ID="txtName" runat="server" CssClass="text"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rfvtxtName" ControlToValidate="txtName" SetFocusOnError="true" Display="None" runat="server" ErrorMessage=" Name" ValidationGroup="valgrpReview"></asp:RequiredFieldValidator>
   <br class="clearfix" />
      <label>Email</label>
   <asp:TextBox ID="txtEmail" runat="server" CssClass="text"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rfvtxtEmail" ControlToValidate="txtEmail" SetFocusOnError="true" Display="None" runat="server" ErrorMessage=" Email" ValidationGroup="valgrpReview"></asp:RequiredFieldValidator>
    <br class="clearfix" />
     <label>Review</label>
 <br class="clearfix" />
    <asp:TextBox ID="txtReview" runat="server" TextMode="MultiLine" Rows="6" Columns="40"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rfvtxtReview" ControlToValidate="txtReview" SetFocusOnError="true" Display="None" runat="server" ErrorMessage=" Review" ValidationGroup="valgrpReview"></asp:RequiredFieldValidator>
    <br class="clearfix" />
    <asp:Button ID="btnSubmit" runat="server" Text="Submit"  CssClass="button medium gray" ValidationGroup="valgrpReview"
        onclick="btnSubmit_Click" OnClientClick="javascript:SetRateVal();" />
    </form>
</body>
</html>
